package com.daxidi.cn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.daxidi.cn.entity.Bill;
import com.daxidi.cn.entity.Pay;
import com.daxidi.cn.params.QueryPayListParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 支付订单表或者退款表 Mapper 接口
 * </p>
 *
 * @author wsh
 * @since 2020-11-09
 */
public interface PayMapper extends BaseMapper<Pay> {

    public List<Bill> queryPayListPage(@Param("queryPayListParam") QueryPayListParam queryPayListParam,
                                       @Param("limit") Integer pageNum,
                                       @Param("offset") Integer pageSize,
                                       @Param("year") String year,
                                       @Param("month") String month,
                                       @Param("day") String day);

    public Long queryPayCount(@Param("queryPayListParam") QueryPayListParam queryPayListParam,
                                       @Param("year") String year,
                                       @Param("month") String month,
                                       @Param("day") String day);

}
